package com.hxzy.mapper;

import com.hxzy.controller.front.merchandiser.req.EnterpriseInfoReq;
import com.hxzy.controller.front.merchandiser.req.EnterpriseReq;
import com.hxzy.controller.front.merchandiser.resp.EnterpriseResp;
import com.hxzy.controller.vue.merchandiser.req.MerchandiserReq;
import com.hxzy.controller.vue.merchandiser.resp.MerchandiserResp;
import com.hxzy.entity.Merchandiser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 11452
* @description 针对表【merchandiser(商家信息)】的数据库操作Mapper
* @createDate 2023-08-28 11:54:55
* @Entity com.hxzy.entity.Merchandiser
*/
public interface MerchandiserMapper extends BaseMapper<Merchandiser> {

    /**
     * 查询信息
     * @param phone
     * @return
     */
    Map<String, Object> searchByPhone(String phone);

    /**
     * 分页查询
     * @param req
     * @return
     */
    List<MerchandiserResp> search(@Param(value = "req") MerchandiserReq req);

    /**
     * 手机端-商家信息查询
     * @param req
     * @return
     */
    List<EnterpriseResp> frontSearch( @Param(value = "req") EnterpriseReq req);

    /**
     * 查询商家信息
     * @param req
     * @return
     */
    EnterpriseResp findById(@Param(value = "req") EnterpriseInfoReq req);
}




